import Vue from 'vue'
// import { createApp } from 'vue'
import App from './App'
import store from './store'
import router from './router'
import './plugins'
import '@/layouts/export'
import echarts from 'echarts'
import dataV from '@jiaminghi/data-view'
import BaiduMap from 'vue-baidu-map'
import '../src/assets/css/common.css'
// import VueEcharts from 'vue-echarts'
/**
 * @author chuzhixin 1204505056@qq.com （不想保留author可删除）
 * @description 生产环境默认都使用mock，如果正式用于生产环境时，记得去掉
 */

if (process.env.NODE_ENV === 'production') {
  const { mockXHR } = require('@/utils/static')
  mockXHR()
}

Vue.config.productionTip = false
Vue.prototype.$echarts = echarts

// Vue.component('VabChart', VueEcharts)
// createApp(App).use(router).use(store).mount('#vue-admin-beautiful')

// new Vue({
//   el: '#vue-admin-beautiful',
//   router,
//   store,
//   render: (h) => h(App),
// })
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥
  ak: 'CM9CiuUFx3EsPoOGyCd4ASjNGkVNeqdu',
})
Vue.use(dataV)
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#vue-admin-beautiful')
